package com.woniuxy.alipay.impl;

import com.alipay.api.AlipayApiException;
import com.woniuxy.alipay.AlipayBean;
import com.woniuxy.alipay.AlipayUtile;
import com.woniuxy.alipay.IPayModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Classname PayModelImpl
 * @Date 2024/1/9 16:36
 */
@Component
public class PayModelImpl implements IPayModel {
    @Autowired
    private AlipayUtile alipayUtile;

    @Override
    public String aliPay(AlipayBean alipayBean) throws AlipayApiException
    {
        return alipayUtile.pay(alipayBean);
    }
}
